package com.ruoyi.background.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户微信步数记录对象 app_wechat_step
 *
 * @author susu
 * @date 2024-08-20
 */
public class AppWechatStep extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long id;


    /**
     * 用户Id
     */
    @Excel(name = "用户Id")
    private Long userId;

    /**
     * 部门id
     */
    @Excel(name = "部门id")
    private Long deptId;

    /**
     * 记录日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordDate;

    /**
     * 微信步数
     */
    @Excel(name = "微信步数")
    private Integer wechatStep;

    /**
     * 已经兑换了的步数
     */
    @Excel(name = "已经兑换了的步数")
    private Integer exchangeStep;

    private String nickName;

    private String userName;

    private String phonenumber;

    private String deptName;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setRecordDate(Date recordDate) {
        this.recordDate = recordDate;
    }

    public Date getRecordDate() {
        return recordDate;
    }

    public void setWechatStep(Integer wechatStep) {
        this.wechatStep = wechatStep;
    }

    public Integer getWechatStep() {
        return wechatStep;
    }

    public void setExchangeStep(Integer exchangeStep) {
        this.exchangeStep = exchangeStep;
    }

    public Integer getExchangeStep() {
        return exchangeStep;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("id", getId())
                .append("deptId", getDeptId())
                .append("recordDate", getRecordDate())
                .append("wechatStep", getWechatStep())
                .append("exchangeStep", getExchangeStep())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
